package homework.day03;

import com.sun.org.apache.xalan.internal.xsltc.compiler.util.MatchGenerator;

import java.io.Serializable;

public class User implements Serializable {
    private String name;
    private String pwd;
    private String nick;
    private int age;
    public User(){}
    public User(String name, String pwd ,String nick ,int age){
        this.name =name;
        this.pwd = pwd;
        this.nick = nick;
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public void setAge(int age){
       this.age = age;
    }
    public String getName(){
        return name;
    }
    public String getPwd(){
        return pwd;
    }
    public String getMick(){
        return nick;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setPwd(String pwd){
        this.pwd = pwd;
    }
    public void setMick(String mick){
        this.nick = mick;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", nick='" + nick + '\'' +
                ", age=" + age +
                '}';
    }
}
